import type { ResponseData } from '@/api/common/type.ts'
//登录接口参数
export interface loginForm {
  username: string
  password: string
}
//登录接口返回数据类型
export interface loginResponseData extends ResponseData {
  data: string
}
//获取用户信息返回数据类型
export interface userResponseData extends ResponseData {
  data: userInfo
}

//用户信息数据类型
export interface userInfo {
  avatar: string
  name: string
  roles: string[]
  buttons: string[]
  routes: string[]
}
